Skip to content

feat(stv): expose speech progress for reliable turn completion - #34

Merged
mr-wanderer-x merged 1 commit into
mainfrom
fix/direct-playback-progress
Oct 26, 2026
Merged

mr-wanderer-x merged 1 commit into
mainfrom
fix/direct-playback-progress

Conversation

@mr-wanderer-x

@mr-wanderer-x mr-wanderer-x commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Expose the existing cumulative speech counter as read-only played_audio_ms on both STV clients. Custom WebRTC applications can use it to measure turn progress even when metadata arrives in bursts, instead of inferring duration from the time between speaking events.

WebSocket mode counts original audio delivered to the output sink; direct WebRTC mode counts server-published speech. Neither acknowledges browser playback. Idle filler does not advance the counter, and turns/interruption do not reset it. The README also clarifies that a stopped-speaking event can be a pause in a streaming turn.

Version: 0.12.3. No wire protocol or media scheduling changes.

Validation

  • 310 unit tests pass, including six new regressions for output, idle filler, delayed/batched metadata, turn boundaries and wrapper delegation.
  • Ruff lint and formatting pass.
  • Lockfile validation, comment-policy checks, wheel and source package builds pass.
  • Production code review completed without remaining findings.
  • Advisory Pyright reports two existing PayloadType errors in unchanged entities/interaction_messages.py (lines 252 and 375).

No merge or release has been performed. Merging the version bump invokes the repository's normal release workflow.

Direct WebRTC callers need published speech duration to distinguish a pause from a completed streaming turn without relying on metadata arrival timing. Expose cumulative original speech progress and document that it does not acknowledge playback at the listener.
@mr-wanderer-x

Copy link
Copy Markdown
Contributor Author

The green verify job reports a shared-cache reservation race; tests and formatting/lint completed successfully, so no code change is needed. The other annotations announce the GitHub-hosted Ubuntu image migration and are informational.

@mr-wanderer-x
mr-wanderer-x marked this pull request as ready for review October 26, 2026 12:09
@mr-wanderer-x
mr-wanderer-x merged commit aac1d0f into main Oct 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant